<table width="100%" cellpadding="0" cellspacing="0" border="0">
    <thead>
        <tr>
            {if $arrResult && isset($smarty.session.news) && ( (($smarty.session.news&1<<3)>0) || (($smarty.session.news&1<<4)>0) )}
                <th class="firstChild" width="30"><input type="checkbox" name="pcheckall" id="pcheckall" onclick="javascript:checkAll(this.form,'pnewid[]',this.checked);"/></th>
                <th width="130">Hình minh họa</th>
            {else}
                <th class="firstChild" width="130">Hình minh họa</th>
            {/if}                                       
            <th width="150">Tiêu đề</th>
            <th>Tóm lược nội dung</th>
            <th width="70">Like</th>
            <th width="70">Cmt</th>
            {if $strAction == "index"}
            	<th width="70">Hay</th>
            {/if}
            <th width="120">Đăng bởi</th>
            <th width="80">Ngày đăng</th>
            {if $arrResult && isset($smarty.session.news)}
                <th width="20">&nbsp;</th>
            {/if}
        </tr>
    </thead>
    <tbody>
        {if $arrResult}
            {foreach item=item from=$arrResult}
                <tr class="{cycle values="odd,even"}">
                    {if isset($smarty.session.news) && ((($smarty.session.news&1<<3)>0) || (($smarty.session.news&1<<4)>0))}
                        <td class="firstChild" align="center">
                        	<input type="checkbox" id="pnewid{$item.newid}" name="pnewid[]" value="{$item.newid}" onclick="javascript:checkOneItem(this.form, 'pcheckall')"/>
                        </td>
                        <td>{if $item.image != ""}{image path=$item.image type=5 small=1 alt=$item.username attr="width=\"120\""}{/if}</td>
                    {else}
                        <td class="firstChild">{if $item.image != ""}{image path=$item.image type=5 small=1 alt=$item.username attr="width=\"120\""}{/if}</td>
                    {/if}
                    <td>
                    	{$item.title}                       
                    </td>
                    <td> 
                        {$item.short|strip_tags}
                    </td>
                    <td align="right">{$item.tlike|number_format:"0":",":"."}</td>
                    <td align="right">{$item.tcmt|number_format:"0":",":"."}</td>
                    {if $strAction == "index"}
                        <td width="70" align="center">
                        	{if $item.status == 1}
                            	<img src="{$smarty.const.HOST_STATICS}img/icon/ad-accept.png" alt="" border="0" width="16" height="16" />
                            {else}
                            	<img src="{$smarty.const.HOST_STATICS}img/icon/ad-unaccept.png" width="16" height="16" alt="" border="0" />
                            {/if}
                        </td>
                    {/if}
                    <td>
                    	{$item.fullname}
                        {if $item.username}
                        	<div class="topLine">{$item.username}</div>
                        {/if}
                    </td>
                    <td align="center">{$item.postdate|date_format:"%d/%m/%Y"}<br/>{$item.postdate|date_format:"%H:%M:%S"}</td>
                    <td align="center">
                        {if isset($smarty.session.news)}
                            {if ($smarty.session.news&1<<0)>0}
                                <a href="{$smarty.const.HOST_BACKEND}news/detail?newid={$item.newid}" title="Xem thông tin chi tiết">
                                    <img src="{$smarty.const.HOST_STATICS}img/icon/ad-link.png" alt="Detail" border="0" width="16" height="16" />
                                </a>
                            {/if} 
                            {*                           
                            {if ($smarty.session.news&1<<2)>0}
                                <a href="{$smarty.const.HOST_BACKEND}news/edit?newid={$item.newid}" title="Cập nhật thông tin">
                                    <img src="{$smarty.const.HOST_STATICS}img/icon/ad-edit.png" alt="Edit" border="0" width="16" height="16" />
                                </a>
                            {/if}
                            *}
                        {else}
                            &nbsp;
                        {/if}
                    </td>
                </tr>
            {/foreach}
        {else}
        	<tr><td colspan="7" align="center">Không có dữ liệu</td></tr>
        {/if}
    </tbody>
</table>